<?php

namespace Coldwind\Model;

use Think\Model;

abstract class TreeModel extends Model {

    public function getTree() {
        return list_to_tree($this->select());
    }

}
